package service.category;

import java.util.List;

import persistence.category.CategoryDao;

import dao.Category;

public class CategoryDaoService implements CategoryService {

	private CategoryDao dao;

	@Override
	public void deleteCategory(Integer id) {
		dao.deleteCategory(id);
	}

	@Override
	public List<Category> getAllCategory() {
		return dao.getAllCategory();
	}

	@Override
	public Category getCategory(Integer id) {
		return dao.getCategory(id);
	}

	@Override
	public void insertCategory(Category cate) {
		dao.insertCategory(cate);
	}

	@Override
	public void updateCategory(Category cate) {
		dao.updateCategory(cate);

	}

}
